<?php
// +----------------------------------------------------------------------
// | 幕小铺
// +----------------------------------------------------------------------
// | 版权所有 2016~2020 幕小铺科技（大连）有限公司
// +----------------------------------------------------------------------
// | 2020/03/14
// +----------------------------------------------------------------------
namespace app\user_center\behavior\user\unbind_apple_before;

/**
 * 检测苹果账号绑定
 * @package app\user_center\behavior\user\unbind_apple_before
 * @author shiqiang
 */
class checkAppleBind{
    /**
     * 执行行为 run方法是Behavior唯一的接口
     * @access public
     * @return void
     */
    public function run($params){
		$uid 	= $params['uid'];
		
		$result = model('UcMemberApple', 'model\user') -> getDataByUid($uid);
		if($result['code'] < 0){
			return array_out(-1001,'该用户没有绑定苹果账号');
		}
    }
}
